OCAMLC=ocamlbuild
LIB=-lib /usr/lib/ocaml/str

EXEC=compilo.exe
TMPEXEC=main.native
BUILD_DIR=build


all:
	$(OCAMLC) -build-dir $(BUILD_DIR) $(LIB) $(TMPEXEC)
	ls $(EXEC) >/dev/null 2>&1 || ln -s $(BUILD_DIR)/$(TMPEXEC) $(EXEC)

clean:
	rm -rf $(BUILD_DIR)/*
	rm $(EXEC)
